package com.gexiaobao.pigeon.app.model.bean

import java.io.Serializable

/**
 * @Author      : hxw
 * @Date        : 2023/3/8 15:06
 * @Describe    :
 */
class PickUpDetailResponse(

    var title: String = "",
    var carPhone: String = "",
    var notice: String = "",
    var raceId: Int = 0,
    var postAd: ArrayList<PostAdInfo> = arrayListOf(),
    var postDd: ArrayList<PostDdInfo> = arrayListOf()

) : Serializable {

    /**
     * 数据是否为空
     */
    fun isEmptyAd() = postAd == null || (postAd as List<*>).isEmpty()

    /**
     * 数据是否为空
     */
    fun isEmptyDd() = postDd == null || (postDd as List<*>).isEmpty()

    class PostAdInfo(

        var address: String = "",
        var startTime: String = "",
        var endTime: String = ""

    ) : Serializable

    class PostDdInfo(



    ) : Serializable

}